<?php
$oUsers = UserHandler::getUsers();
foreach ($oUsers as $oThisUser) {
	$sAttendanceArray = UserHandler::getAttendance($oThisUser->iID);
	$sAttendance = $sAttendanceArray[0]['type'];
	if (!$sAttendance) {
		$sAttendance = 'leaving';
	}
	print "\t<user";

	print " id=\"{$oThisUser->iID}\"";
	print " username=\"{$oThisUser->sUser}\"";
	print " name=\"{$oThisUser->sFullname}\"";
	print " attendancestatus=\"{$sAttendance}\"";

	print "/>\n";
}
?>
